export const routes = 
[
  {
    name:'frontDesk',
    path: '/',
    component: BaseLayout,
    children:[
      {
        name: '首页',
        path: '/',
        component: () => import('@/views/index/index.vue'),
      },
      {
        name: '联系我们',
        path: '/ContactUs',
        meta:{ lang:"contact.title",},
        component: () => import('@/views/contactUs/ContactUs.vue'),
      },
      {
        name: '关于我们',
        path: '/AboutUs',
        meta:{ lang:"about.title",},
        component: () => import('@/views/about/index.vue'),
      },
      {
        name: '新闻中心',
        path: '/News',
        meta:{ lang:"new.title"},
        component: () => import('@/views/new/list.vue'),
      },
      {
        name: '文章',
        path: '/News/Article',
        meta:{ lang:"new.title",bread:""},
        component: () => import('@/views/new/article.vue'),
      },
      {
        name: '产品列表',
        path: '/Product',
        meta:{ lang:"product.title"},
        component: () => import('@/views/product/list.vue'),
      },
      {
        name: '产品详情',
        path: '/Product/ProductDetails',
        meta:{ lang:"product.title"},
        component: () => import('@/views/product/productDetails.vue'),
      },
    ]
  },
  {
    name: '后台管理-用户登录',
    path: '/management/User/Login',
    component: () => import('@/views/admin/user/login.vue'),
  },
  {
    path: '/management',
    name:"后台管理",
    component: AdminLayout,
    redirect: "/management/home/CarouselList",
    children:[
      {
        name: '首页',
        path: '/management/home/CarouselList',
        component: () => import('@/views/admin/home/carouselList.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '轮播图表单',
        path: '/management/home/CarouselForm',
        component: () => import('@/views/admin/home/carouselForm.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '联系我们',
        path: '/management/ContactUs',
        component: () => import('@/views/admin/contactUs/index.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '关于我们',
        path: '/management/AboutUs',
        component: () => import('@/views/admin/aboutUs/index.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '新闻中心',
        path: '/management/Artcie',
        component: () => import('@/views/admin/artcie/list.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '新闻中心表单',
        path: '/management/Artcie/Form',
        component: () => import('@/views/admin/artcie/form.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '产品列表',
        path: '/management/Product/List',
        component: () => import('@/views/admin/product/list.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '产品列表表单',
        path: '/management/Product/Form',
        component: () => import('@/views/admin/product/form.vue'),
        meta: { requiresAuth: true }
      },
      {
        name: '产品分类',
        path: '/management/Product/categorie',
        component: () => import('@/views/admin/product/categorie.vue'),
        meta: { requiresAuth: true }
      }
    ]
  }
]

